﻿using WebApplication1.Core.DataTransferObject;

namespace WebApplication1.Core.ServiceContracts {
    public interface IXiangxixinxiService {

        public Task<XiangxixinxiResponse?> GetXiangxixinxiByXiangxixinxiID(ushort? XiangxixinxiID);
        public Task<IEnumerable<XiangxixinxiResponse>?> GetXiangxixinxiByMingCheng(string? mingCheng);
        public Task<IEnumerable<XiangxixinxiSimpleResponse>> GetAllXiangxixinxi();

        public Task<XiangxixinxiResponse> AddXiangxixinxi(XiangxixinxiRequest? XiangxixinxiAddRequest);

        public Task<XiangxixinxiResponse?> UpdateXiangxixinxi(XiangxixinxiRequest? XiangxixinxiUpdateResponse);

        public Task<bool> DeleteXiangxixinxi(ushort? XiangxixinxiID);
    }
}
